# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html


# useful for handling different item types with a single interface
from itemadapter import ItemAdapter

# 管道文件,保存数据的地方


class CcgpPipeline:
    # 爬虫每次yield返回一次数据   process_item就会执行一次
    # 名字是固定的
    print("执行了CcgpPipeline")
    def process_item(self, item, spider):
        print("管道文件执行process_item")
        # print(item)
